package com.zxy.ider.ehome.bean;

import android.graphics.drawable.Drawable;

import com.zxy.ider.ehome.Appcontext;
import com.zxy.ider.ehome.R;
import com.zxy.ider.ehome.util.FileUtils;

import java.io.File;
import java.net.URI;

/**
 * Created by ider-eric on 2017/7/1.
 */

public class MyFile extends File{
    private Drawable fileIcon;
    private String fileName;
    private String fileSize;
    private String type;
    private boolean isDir;
    public MyFile(String parent, String child) {
        super(parent, child);
    }

    public MyFile(File parent, String child) {
        super(parent, child);
    }

    public MyFile(URI uri) {
        super(uri);
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isDir() {
        return isDir;
    }

    public void setDir(boolean dir) {
        isDir = dir;
    }

    public Drawable getFileIcon() {
        return fileIcon;
    }

    public void setFileIcon(Drawable fileIcon) {
        this.fileIcon = fileIcon;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    public MyFile(String pathname, Drawable fileIcon,  String fileName, String fileSize,boolean isDir,String type) {
        super(pathname);
        this.fileIcon = fileIcon;
        this.fileName = fileName;
        this.fileSize = fileSize;
        this.isDir = isDir;
        this.type = type;
    }



}
